package com.yun.springboot_demo.controller;

import com.yun.springboot_demo.controller.BaseController;
import com.yun.springboot_demo.entity.ReturnBean;
import com.yun.springboot_demo.entity.Tester;
import com.yun.springboot_demo.service.TesterService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2021/11/29 15:35
 * @description：测试者业务控制器
 * @modified By：
 * @version: 1.0
 */
@RestController
@RequestMapping("tester")
public class TesterController extends BaseController {
    @Resource
    private TesterService testerService;
    @RequestMapping("selectAllPage")
    public ReturnBean selectAllPage() {
        List<Tester> testers = testerService.selectAllTester();
        return super.success(testers);
    }

}
